﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master"
	CodeBehind="OrgChart.aspx.vb" Inherits="RWN.OrgChart" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ MasterType VirtualPath="~/MainPage.Master" %>
<%@ Register Src="ucOrgChart.ascx" TagName="ucOrgChart" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
	<script type="text/javascript" src="js/stickytooltip.js">

		/***********************************************
		* Sticky Tooltip script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
		* This notice MUST stay intact for legal use
		* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
		***********************************************/

	</script>
	<link rel="stylesheet" type="text/css" href="css/stickytooltip.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>
	 <h3 class="org"></h3><hr />
	<div>
	<table>
	<tr>
	<td><asp:ImageButton ID="btnPLv" runat="server" ImageUrl="~/images/btnplv.png" />&nbsp;<asp:ImageButton ID="btnRoot" runat="server" ToolTip="Root" ImageUrl="~/images/btnroot.png" />&nbsp;</td>
	<td><asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:TextBox ID="txtSearch" runat="server"></asp:TextBox></ContentTemplate><Triggers><asp:AsyncPostBackTrigger ControlID="gvOffical" EventName="RowCommand" /></Triggers></asp:UpdatePanel></td>
	<td>			<asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/images/btnsubmit.png"
			ValidationGroup="vld1" /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSearch"
			Display="None" ErrorMessage="*" ValidationGroup="vld1">*</asp:RequiredFieldValidator><asp:ImageButton ID="imgSponsorPopup" runat="server" ImageUrl="~/images/icon_search.png"
			 />
</td>
	</tr>
	</table>	
	</div>
	<div class="clearfix">
		<div id="div_chart">
			<uc1:ucOrgChart ID="ucOrgChart1" runat="server" />
		</div>
		<p>&nbsp;</p>
		<table width="910" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td><img src="status/blue-size-4.png" width="22" height="21" /></td>
          <td><div align="left">รอนำส่งเอกสารการสมัคร</div></td>
          <td><img src="status/yellow-size-4.png" width="22" height="21" /></td>
          <td><div align="left">ปกติ (ยังไม่รักษายอด)</div></td>
          <td><img src="status/green-size-4.png" width="22" height="21" /></td>
          <td><div align="left">ปกติ (รักษายอด)</div></td>
          <td><img src="status/pink-size-4.png" width="22" height="21" /></td>
          <td><div align="left">รอต่ออายุสมาชิก 90 วัน</div></td>
          </tr>
        <tr>
          <td><img src="status/red-size-4.png" width="22" height="21" /></td>
          <td><div align="left">หมดอายุสมาชิก</div></td>
          <td><img src="status/gray-size-4.png" width="22" height="21" /></td>
          <td><div align="left">ระงับชั่วคราว (กรุณาติดต่อบริษัทฯ)</div></td>
          <td><img src="status/black-size-4.png" width="22" height="21" /></td>
          <td><div align="left">โมฆะ</div></td>
          <td><img src="status/white-size-4.png" width="22" height="21" /></td>
          <td><div align="left">ว่าง</div></td>
        </tr>
      </table>
	</div>
	<!--<div class="div_status_desc">
		
	</div>-->
	<div id="mystickytooltip" class="stickytooltip">
		<div style="padding: 5px">
			<asp:Literal ID="ltrDivToolTips" runat="server" EnableViewState="false"></asp:Literal>
		</div>
		<div class="stickystatus">
		</div>
	</div>
	<asp:Panel ID="Panel2" runat="server" CssClass="modalPopup">
		<asp:Panel ID="Panel4" runat="server" Style="cursor: move; background-color: #DDDDDD;
			border: solid 1px Gray; color: Black">
			<div>
				<p>
					สปอนเซอร์:</p>
			</div>
		</asp:Panel>
		<div>
			<asp:UpdatePanel runat="server" ID="updGrid">
				<ContentTemplate>
					<asp:TextBox ID="txtSearchSponsor" runat="server"></asp:TextBox>&nbsp;<asp:Button
						ID="btnSponsorSearch" runat="server" Text="ค้นหา" />
					<asp:GridView ID="gvOffical" runat="server" AllowPaging="True" AutoGenerateColumns="False"
						EmptyDataText="ไม่พบข้อมูล" EnableModelValidation="True" Width="100%">
						<Columns>
							<asp:ButtonField CommandName="Select" DataTextField="OFFICER_APP_ID" HeaderText="เลขที่ใบสมัคร" />
							<asp:BoundField DataField="OFFICER_FIRSTNAME_THA" HeaderText="ชื่อ" />
							<asp:BoundField DataField="OFFICER_LASTNAME_THA" HeaderText="นามสกุล" />
							<asp:BoundField DataField="OFFCIER_APP_TEL" HeaderText="หมายเลขโทรศัพท์ในการทำธุรกิจ" />
							<asp:TemplateField Visible="true">
								<ItemTemplate>
									<asp:HiddenField ID="HiddenField1" runat="server" Value='<%# Eval("OFFICER_ID") %>' />
								</ItemTemplate>
								<ItemStyle Width="1px" />
							</asp:TemplateField>
						</Columns>
					</asp:GridView>
				</ContentTemplate>
			</asp:UpdatePanel>
		</div>
		<div>
			<p style="text-align: center;">
				<asp:Button ID="CancelButton" runat="server" Text="Cancel" Width="70px" CssClass="button" />
			</p>
		</div>
	</asp:Panel>
	<cc1:ModalPopupExtender ID="mpu" runat="server" Enabled="True" DynamicServicePath=""
		PopupControlID="Panel2" DropShadow="True" RepositionMode="RepositionOnWindowScroll"
		BackgroundCssClass="modalBackground" CancelControlID="CancelButton" TargetControlID="imgSponsorPopup">
	</cc1:ModalPopupExtender>
</asp:Content>
